package com.demo.enums;

/**
 * 医嘱状态 1.未停止 2.已停止
 */
public enum PreventiveDoctorAdviceStatusEnum {
    UN_STOP(1, "未停止"),
    HAS_STOP(2, "已停止");

    private int value;
    private String desc;

    public int getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

    PreventiveDoctorAdviceStatusEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public static PreventiveDoctorAdviceStatusEnum getByValue(Integer value) {
        for (PreventiveDoctorAdviceStatusEnum item : values()) {
            if (item.getValue() == value) {
                return item;
            }
        }
        return null;
    }
}
